192
|
How do I display radio buttons for all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Radio")))->PutDef(EXCOMBOBOXLib::exCellHasRadioButton,VARIANT_TRUE);
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
191
|
How do I display checkboxes for all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")))->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
247
|
How do I display as strikeout an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemStrikeOut(var_Items->AddItem("strikeout"),VARIANT_TRUE);
|
248
|
How do I display as strikeout a cell or an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <s>strikeout</s> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
249
|
How do I display as strikeout a cell

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellStrikeOut(var_Items->AddItem("strikeout"),long(0),VARIANT_TRUE);
|
241
|
How do I display as italic an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemItalic(var_Items->AddItem("italic"),VARIANT_TRUE);
|
242
|
How do I display as italic a cell or an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <i>italic</i> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
243
|
How do I display as italic a cell

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellItalic(var_Items->AddItem("italic"),long(0),VARIANT_TRUE);
|
90
|
How do I disable the full-row selection in the control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFullRowSelect(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem("One");
spComboBox1->GetItems()->AddItem("Two");
|
113
|
How do I disable the control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutEnabled(VARIANT_FALSE);
|
80
|
How do I disable sorting the columns when clicking the control's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutSortOnClick(EXCOMBOBOXLib::exNoSort);
spComboBox1->GetColumns()->Add(L"1");
spComboBox1->GetColumns()->Add(L"2");
|
81
|
How do I disable sorting a specified column when clicking its header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"1");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"NoSort")))->PutAllowSort(VARIANT_FALSE);
|
118
|
How do I disable showing the tooltip for all control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(0);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
|
178
|
How do I disable resizing a column at runtime

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Unsizable")))->PutAllowSizing(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"C2");
spComboBox1->GetColumns()->Add(L"C3");
spComboBox1->GetColumns()->Add(L"C4");
|
250
|
How do I disable or enable an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutEnableItem(var_Items->AddItem("disabled"),VARIANT_FALSE);
spComboBox1->GetItems()->AddItem("enabled");
|
179
|
How do I disable drag and drop columns

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C1")))->PutAllowDragging(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C2")))->PutAllowDragging(VARIANT_FALSE);
|
51
|
How do I change visual appearance of the +/- ( expand/collapse ) buttons

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutHasButtons(EXCOMBOBOXLib::exWPlus);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child");
|
266
|
How do I change the visual effect for the cell, using your EBN files

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellBackColor(h,long(1),0x1000000);
|
147
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exHSThumb,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHSThumbP,0x2000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHSThumbH,0x3000000);
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"S")))->PutWidth(483);
|
140
|
How do I change the visual aspect of the drop down filter button, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exHeaderFilterBarButton,0x1000000);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);
|
143
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateHeader,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateTodayUp,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateTodayDown,0x2000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateScrollThumb,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateScrollRange,RGB(230,230,230));
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateSeparatorBar,RGB(230,230,230));
spComboBox1->PutBackground(EXCOMBOBOXLib::exDateSelect,0x1000000);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Date")));
var_Column->PutFilterType(EXCOMBOBOXLib::exDate);
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterDate(VARIANT_TRUE);
|
142
|
How do I change the visual aspect of the close button in the filter bar, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exFooterFilterBarButton,0x1000000);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")))->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
144
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exSelBackColorFilter,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exSelForeColorFilter,RGB(255,20,20));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);
|
141
|
How do I change the visual aspect of buttons in the cell, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exCellButtonUp,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exSizeGrip,0x2000000);
spComboBox1->PutSelForeColor(RGB(0,0,0));
spComboBox1->PutShowFocusRect(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutDef(EXCOMBOBOXLib::exCellHasButton,VARIANT_TRUE);
spComboBox1->GetItems()->AddItem("Button 1");
spComboBox1->GetItems()->AddItem("Button 2");
spComboBox1->GetColumns()->Add(L"Column 2");
|
148
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exHSThumb,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHSThumbP,0x2000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHSThumbH,0x3000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exVSThumb,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exVSThumbP,0x2000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exVSThumbH,0x3000000);
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"S")))->PutWidth(483);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemHeight(var_Items->AddItem("Item 1"),248);
spComboBox1->GetItems()->AddItem("Item 2");
|
236
|
How do I change the visual appearance for the item, using your EBN technology

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->PutItemBackColor(hC,0x1000000);
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
98
|
How do I change the visual appearance effect for the selected item, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutSelBackColor(0x1000000);
spComboBox1->PutSelForeColor(RGB(0,0,0));
spComboBox1->PutShowFocusRect(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
335
|
How do I change the text in the edit or label area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
spComboBox1->PutEditText(long(0),L"Test");
|
157
|
How do I change the item's foreground color for numbers between an interval - Range

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetConditionalFormats()->Add(L"%0 >= 2 and %0 <= 10",vtMissing)->PutForeColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"Numbers");
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->GetItems()->AddItem(long(2));
spComboBox1->GetItems()->AddItem(long(10));
spComboBox1->GetItems()->AddItem(long(20));
|
156
|
How do I change the item's background color for numbers less than a value

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetConditionalFormats()->Add(L"%0 < 10",vtMissing)->PutBackColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"Numbers");
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->GetItems()->AddItem(long(2));
spComboBox1->GetItems()->AddItem(long(10));
spComboBox1->GetItems()->AddItem(long(20));
|
102
|
How do I change the height of the control's filterbar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFilterBarHeight(32);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
251
|
How do I change the height of an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemHeight(var_Items->AddItem("height"),128);
spComboBox1->GetItems()->AddItem("enabled");
|
101
|
How do I change the header's foreground color

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHeaderForeColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
spComboBox1->GetItems()->AddItem("Item 1");
|
103
|
How do I change the foreground color of the control's filterbar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFilterBarForeColor(RGB(255,0,0));
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
237
|
How do I change the foreground color for the item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->PutItemForeColor(hC,RGB(255,0,0));
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
106
|
How do I change the font of the control's filterbar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetFilterBarFont()->PutSize(_variant_t(long(20)));
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
568
|
How do I change the drop down filter icon/button (black)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
EXCOMBOBOXLib::IAppearancePtr var_Appearance = spComboBox1->GetVisualAppearance();
var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAAEhABXUIQAAYAQGKIcBiAKBQAGYBIJDEMgzDDAUBjKKocQTC4AIQjCK4JDKHYJRpHEZyCA8EhqGASRAFUQBYiWE4oSpLABQaK0ZwIGyRIrkGQgQ") +
"gmPYDSDNU4zVIEEglBI0TDNczhNDENgtGYaJqHIYpZBcM40TKkEZoSIITZcRrOEBiRL1S0RBhGcRUHZlWzdN64LhuK47UrWdD/XhdVzXRbjfz1Oq+bxve48Br7A5yYTh" +
"dr4LhOFQ3RjIL4xbIcUwGe6VZhjOLZXjmO49T69HTtOCYBEBA");
spComboBox1->PutBackground(EXCOMBOBOXLib::exCursorHoverColumn,-1);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHeaderFilterBarButton,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exBackColorFilter,RGB(0,0,1));
spComboBox1->PutBackground(EXCOMBOBOXLib::exForeColorFilter,RGB(255,255,255));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarExclude,L"<bgcolor 0><fgcolor ffffff> Exclude </fgcolor></bgcolor>");
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::None2);
spComboBox1->PutHeaderBackColor(RGB(0,0,0));
spComboBox1->PutHeaderForeColor(RGB(255,255,255));
spComboBox1->PutHeaderVisible(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")));
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowCheckBox));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutAllowSort(VARIANT_FALSE);
var_Column->PutAllowDragging(VARIANT_FALSE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("One");
var_Items->AddItem("Two");
var_Items->AddItem("Three");
spComboBox1->EndUpdate();
|
86
|
How do I change the control's foreground color

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutForeColor(RGB(120,120,120));
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem("item");
|
322
|
How do I change the control's border, using your EBN files

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutAppearance(EXCOMBOBOXLib::AppearanceEnum(0x1000000));
|
85
|
How do I change the control's background color

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutBackColor(RGB(200,200,200));
|
87
|
How do I change the control's background / foreground color on the locked area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutCountLockedColumns(1);
spComboBox1->PutForeColorLock(RGB(240,240,240));
spComboBox1->PutBackColorLock(RGB(128,128,128));
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Locked")))->PutWidth(128);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Un-Locked 1")))->PutWidth(128);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Un-Locked 2")))->PutWidth(128);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Un-Locked 3")))->PutWidth(128);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("locked"),long(1),"unlocked");
|
158
|
How do I change the column's foreground color for numbers between an interval - Range

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"%0 >= 2 and %0 <= 10",vtMissing);
var_ConditionalFormat->PutBold(VARIANT_TRUE);
var_ConditionalFormat->PutForeColor(RGB(255,0,0));
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::FormatApplyToEnum(0x1));
spComboBox1->GetColumns()->Add(L"N1");
spComboBox1->GetColumns()->Add(L"N2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2));
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaption(var_Items1->AddItem(long(3)),long(1),long(3));
EXCOMBOBOXLib::IItemsPtr var_Items2 = spComboBox1->GetItems();
var_Items2->PutCellCaption(var_Items2->AddItem(long(10)),long(1),long(11));
EXCOMBOBOXLib::IItemsPtr var_Items3 = spComboBox1->GetItems();
var_Items3->PutCellCaption(var_Items3->AddItem(long(13)),long(1),long(31));
spComboBox1->PutSearchColumnIndex(1);
|
175
|
How do I change the column's caption

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutCaption(L"new caption");
|
97
|
How do I change the colors for the selected item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutSelBackColor(RGB(0,0,0));
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
267
|
How do I change the cell's foreground color

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellForeColor(h,long(1),RGB(255,0,0));
|
265
|
How do I change the cell's background color

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellBackColor(h,long(1),RGB(255,0,0));
|
264
|
How do I change the caption or value for a particular cell

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Cell 1"),long(1),"Cell 2");
|
115
|
How do I change the caption being displayed in the control's filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFilterBarCaption(L"your filter caption");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
104
|
How do I change the background color of the control's filterbar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFilterBarBackColor(RGB(240,240,240));
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
235
|
How do I change the background color for the item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->PutItemBackColor(hC,RGB(255,0,0));
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
33
|
How do I change the "All", "Blanks" or/and "NonBlanks" caption in the drop down filter window

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAll,L"new name for (All)");
|
111
|
How do I call your x-script language

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->ExecuteTemplate(L"Columns.Add(`Column`)")));
var_Column->PutHeaderStrikeOut(VARIANT_TRUE);
var_Column->PutHeaderBold(VARIANT_TRUE);
|
110
|
How do I call your x-script language

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutTemplate(L"Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`");
|
238
|
How do I bold an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemBold(var_Items->AddItem("bold"),VARIANT_TRUE);
|
239
|
How do I bold a cell or an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <b>bold</b> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
240
|
How do I bold a cell

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellBold(var_Items->AddItem("bold"),long(0),VARIANT_TRUE);
|
233
|
How do I associate an extra data to an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemData(var_Items->AddItem("item"),"your extra data");
|
163
|
How do I assign an icon to the button in the scrollbar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->PutScrollPartVisible(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLeftB1Part,VARIANT_TRUE);
spComboBox1->PutScrollPartCaption(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLeftB1Part,L"<img>1</img>");
spComboBox1->PutScrollHeight(18);
spComboBox1->PutScrollButtonWidth(18);
|
164
|
How do I assign a tooltip to a scrollbar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutScrollToolTip(EXCOMBOBOXLib::exHScroll,L"This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar");
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C1")))->PutWidth(256);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C2")))->PutWidth(256);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C3")))->PutWidth(256);
|
578
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects (MDB,JET)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
rs->Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spComboBox1->EndUpdate();
|
99
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
|
200
|
How do I arrange my columns on multiple lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHeaderHeight(32);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutHTMLCaption(L"Line 1<br>Line 2");
|
201
|
How do I arrange my columns on multiple levels

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"S")))->PutWidth(32);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 4")))->PutLevelKey(long(1));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 1")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 2")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 3")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 4")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"E")))->PutWidth(32);
|
303
|
How do I apply HTML format to a cell

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spComboBox1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("The following item shows some of the HTML format supported:");
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
h = var_Items->AddItem(_bstr_t("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <") +
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" +
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ");
var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML);
var_Items->PutCellSingleLine(h,long(0),EXCOMBOBOXLib::exCaptionWordWrap);
|
182
|
How do I align the icon in the column's header to the right

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"ColumnName")));
var_Column->PutHeaderImage(1);
var_Column->PutHeaderImageAlignment(EXCOMBOBOXLib::RightAlignment);
|
346
|
How do change the visual appearance for the drop down border, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutDropDownBorder(EXCOMBOBOXLib::AppearanceEnum(0x1000000));
|
70
|
How do change the visual appearance for the control's header bar, using EBN

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutHeaderBackColor(0x1000000);
|
197
|
How do change the vertical alignment for all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"VAlign")))->PutDef(EXCOMBOBOXLib::exCellVAlignment,long(2));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("This is a bit of long text that should break the line"),long(1),"bottom");
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaption(var_Items1->AddItem("This is a bit of long text that should break the line"),long(1),"bottom");
|
196
|
How do change the foreground color for all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"ForeColor")))->PutDef(EXCOMBOBOXLib::exCellForeColor,long(255));
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
195
|
How do change the background color for all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"BackColor")))->PutDef(EXCOMBOBOXLib::exCellBackColor,long(255));
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
5
|
How can I use HTML format in column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> <fgcolor=0000FF>Col</fgcolor>umn");
|
28
|
How can I underline the column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutHeaderUnderline(VARIANT_TRUE);
|
213
|
How can I underline all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutUnderline(VARIANT_TRUE);
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
185
|
How can I specify the minimum width for the column, if I use WidthAutoResize property

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Auto")));
var_Column->PutWidthAutoResize(VARIANT_TRUE);
var_Column->PutMinWidthAutoResize(32);
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
186
|
How can I specify the maximum width for the column, if I use WidthAutoResize property

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Auto")));
var_Column->PutWidthAutoResize(VARIANT_TRUE);
var_Column->PutMinWidthAutoResize(32);
var_Column->PutMaxWidthAutoResize(128);
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
441
|
How can I specify the format for negative numbers

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Def")))->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem(double(-100000.27));
var_Items->PutFormatCell(h,long(0),L"(value format '') + ' <fgcolor=808080>(default)'");
h = var_Items->AddItem(double(-100000.27));
var_Items->PutFormatCell(h,long(0),L"(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'");
spComboBox1->EndUpdate();
|
432
|
How can I specify an item to be always the last item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutTreeColumnIndex(-1);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Numbers")))->PutSortType(EXCOMBOBOXLib::SortNumeric);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem(long(1));
var_Items->AddItem(long(2));
var_Items->AddItem(long(3));
var_Items->AddItem(long(4));
long h = var_Items->AddItem("last");
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::RightAlignment);
var_Items->PutSortableItem(h,VARIANT_FALSE);
var_Items->SortChildren(0,long(0),VARIANT_TRUE);
spComboBox1->EndUpdate();
|
433
|
How can I specify an item to be always the first item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutTreeColumnIndex(-1);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Numbers")))->PutSortType(EXCOMBOBOXLib::SortNumeric);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem(long(1));
var_Items->AddItem(long(2));
var_Items->AddItem(long(3));
var_Items->AddItem(long(4));
long h = var_Items->AddItem("first");
var_Items->PutItemPosition(h,0);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::RightAlignment);
var_Items->PutSortableItem(h,VARIANT_FALSE);
var_Items->SortChildren(0,long(0),VARIANT_FALSE);
spComboBox1->EndUpdate();
|
530
|
How can I specify alternate background colors for each root item, similar with BackColorAlternate

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Position")));
var_Column1->PutFormatColumn(L"( ( 1:=( ( 0:=(1 rpos '') ) lfind `.`) ) < 0 ? =:0 : (=:0 left =:1) )");
var_Column1->PutVisible(VARIANT_FALSE);
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"%C1 mod 2",vtMissing);
var_ConditionalFormat->PutBackColor(RGB(240,240,240));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
h = var_Items->AddItem("Root 3");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
spComboBox1->EndUpdate();
|
355
|
How can I sort the value gets listed in the drop down filter window

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAll,L"");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarBlanks,L"");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarNonBlanks,L"");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column->PutFilterList(EXCOMBOBOXLib::exSortItemsDesc);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column1->PutFilterList(EXCOMBOBOXLib::exSortItemsAsc);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Z3");
var_Items->PutCellCaption(h,long(1),"C");
var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Z1"),long(1),"B");
var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Z2"),long(1),"A");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
230
|
How can I sort the items

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->GetColumns()->GetItem("Default")->PutSortOrder(EXCOMBOBOXLib::SortDescending);
|
136
|
How can I sort by multiple columns

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutSingleSort(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C1")))->PutSortOrder(EXCOMBOBOXLib::SortAscending);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C2")))->PutSortOrder(EXCOMBOBOXLib::SortDescending);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C3")))->PutSortOrder(EXCOMBOBOXLib::SortAscending);
|
434
|
How can I simulate displaying groups

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHasLines(EXCOMBOBOXLib::exNoLine);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns();
var_Columns->Add(L"Name");
var_Columns->Add(L"A");
var_Columns->Add(L"B");
var_Columns->Add(L"C");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Group 1");
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerBoth);
var_Items->PutItemHeight(h,24);
var_Items->PutSortableItem(h,VARIANT_FALSE);
long h1 = var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->PutCellCaption(h1,long(1),long(1));
var_Items->PutCellCaption(h1,long(2),long(2));
var_Items->PutCellCaption(h1,long(3),long(3));
h1 = var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutCellCaption(h1,long(1),long(4));
var_Items->PutCellCaption(h1,long(2),long(5));
var_Items->PutCellCaption(h1,long(3),long(6));
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Group 2");
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerBoth);
var_Items->PutItemHeight(h,24);
var_Items->PutSortableItem(h,VARIANT_FALSE);
h1 = var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->PutCellCaption(h1,long(1),long(1));
var_Items->PutCellCaption(h1,long(2),long(2));
var_Items->PutCellCaption(h1,long(3),long(3));
h1 = var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutCellCaption(h1,long(1),long(4));
var_Items->PutCellCaption(h1,long(2),long(5));
var_Items->PutCellCaption(h1,long(3),long(6));
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
128
|
How can I show the locked / fixed items on the bottom side of the control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutShowLockedItems(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutLockedItemCount(EXCOMBOBOXLib::exMiddle,2);
var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exMiddle,0),long(0),"locked item 1");
var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exMiddle,1),long(0),"locked item 2");
var_Items->AddItem("un-locked item");
|
127
|
How can I show the locked / fixed items

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutShowLockedItems(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutLockedItemCount(EXCOMBOBOXLib::exTop,2);
var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),long(0),"locked item 1");
var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,1),long(0),"locked item 2");
var_Items->AddItem("un-locked item");
|
336
|
How can I show the drop down window as soon as user starts typing in the control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutAutoDropDown(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
125
|
How can I show the control's sort bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutSortBarVisible(VARIANT_TRUE);
|
55
|
How can I show the control's grid lines only for added/visible items

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->GetItems()->AddItem(long(2));
|
17
|
How can I show the control's grid lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->GetItems()->AddItem(long(2));
|
449
|
How can I show the child items with no identation

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesOutside);
spComboBox1->PutIndent(12);
spComboBox1->PutHasLines(EXCOMBOBOXLib::exThinLine);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->InsertItem(h,vtMissing,"Child 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->InsertItem(h,vtMissing,"Child 3");
|
12
|
How can I show or hide a column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Hidden")))->PutVisible(VARIANT_FALSE);
|
204
|
How can I show or display the control's filter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);
|
480
|
How can I show only the matching items, while user types in the drop down control

// EditChange event - Fired when the user has taken an action that may have altered text in an edit control.
void OnEditChangeComboBox1(long ColIndex)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_bstr_t sLabel = spComboBox1->GetEditText(ColIndex);
OutputDebugStringW( L"Select the item that maches exactly the typing label: " );
OutputDebugStringW( L"sLabel" );
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutSelectItem(var_Items->GetFocusItem(),VARIANT_FALSE);
var_Items->PutSelectItem(var_Items->GetFindItem(sLabel,ColIndex,vtMissing),VARIANT_TRUE);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutSingleEdit(VARIANT_TRUE);
spComboBox1->PutAutoComplete(VARIANT_FALSE);
spComboBox1->PutAutoSelect(VARIANT_FALSE);
spComboBox1->PutAutoSearch(VARIANT_FALSE);
spComboBox1->PutAutoDropDown(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutHeaderVisible(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Friends");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Fred");
var_Items->AddItem("Tina");
var_Items->AddItem("Tom");
spComboBox1->EndUpdate();
|
212
|
How can I show in italic all data in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutItalic(VARIANT_TRUE);
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
214
|
How can I show as strikeout all cells in the column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutStrikeOut(VARIANT_TRUE);
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
208
|
How can I show a column that adds values in the cells

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"A");
spComboBox1->GetColumns()->Add(L"B");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"A+B")))->PutComputedField(L"%0 + %1");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2));
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaption(var_Items1->AddItem(long(10)),long(1),long(20));
|
600
|
How can I replace or add an icon at runtime

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->ReplaceIcon(_bstr_t("gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+O") +
"kYB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA==",vtMissing);
spComboBox1->ReplaceIcon("C:\\images\\favicon.ico",long(0));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Items")))->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
spComboBox1->GetItems()->AddItem("Item <img>1</img>");
spComboBox1->EndUpdate();
|
350
|
How can I remove the filter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
spComboBox1->ClearFilter();
|
227
|
How can I remove or delete an item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
long h = spComboBox1->GetItems()->AddItem("removed item");
spComboBox1->GetItems()->RemoveItem(h);
|
228
|
How can I remove or delete all items

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Default");
spComboBox1->GetItems()->AddItem("removed item");
spComboBox1->GetItems()->RemoveAllItems();
|